﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Gallery_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
    <acms:JavascriptFile ID="JavascriptFile1" Path="~/Lightbox/js/prototype.js" runat="server" />
    <acms:JavascriptFile ID="JavascriptFile2" Path="~/Lightbox/js/scriptaculous.js?load=effects,builder" runat="server" />
    <acms:JavascriptFile ID="JavascriptFile3" Path="~/Lightbox/js/lightbox.js" runat="server" />
    <acms:StyleSheet ID="StyleSheet1" Path="~/Lightbox/css/lightbox.css" Media="Screen" runat="server" />
    <script type="text/javascript">
        document.observe('dom:loaded', function() { window.LightboxOptions.fileLoadingImage = '<%=ResolveUrl("~/Lightbox/images/loading.gif") %>'; window.LightboxOptions.fileBottomNavCloseImage = '<%=ResolveUrl("~/Lightbox/images/closelabel.gif") %>'; new Lightbox(); });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
    <h2><acms:PostDisplayName runat="server" /></h2>
    <asp:ListView ID="listItems" GroupItemCount="3" DataSourceID="dsItems" runat="server">
        <LayoutTemplate>
            <div style="width:900px;margin:0px auto;">
                <asp:PlaceHolder ID="groupPlaceHolder" runat="server" />
            </div>
        </LayoutTemplate>
        <GroupTemplate>
            <div style="margin:0px auto;">
                <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                <div style="clear:both"></div>
            </div>
        </GroupTemplate>
        <ItemTemplate>
            <div style="float:left;width:300px;text-align:center;">
                <acms:SubTemplateLoader ID="loader" TemplateFileName="Display" DevTemplatePaths="~/Templates/GalleryItem/Display.ascx" runat="server"/>
            </div>
        </ItemTemplate>
    </asp:ListView>
    <acms:PostDataSource ID="dsItems" OnSelectData="dsItems_SelectData" runat="server" />
</asp:Content>

